//
//  QMADelegateDefine.h
//  Pods
//
//  Created by elvisgao on 2019/11/27.
//

#import <Foundation/Foundation.h>
#import "QMAEncryptedData.h"
#import "MALocationModel.h"
#import "QMAShareModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, QMAAppLifeCycleType) {
    QMAAppLifeCycleTypeNone,
    QMAAppLifeCycleTypeOnShow,
    QMAAppLifeCycleTypeOnHide,
    QMAAppLifeCycleTypeOnClose,
    QMAAppLifeCycleTypeTerminate,
    QMAAppLifeCycleTypeDealloc,
};

typedef NS_ENUM (NSInteger, MALogLevel) {
    MALogLevelError,
    MALogLevelWarn,
    MALogLevelInfo,
    MALogLevelDebug,
};

typedef void (^ MACommonCallback)(NSDictionary * _Nullable result, NSError * _Nullable error);

typedef void (^ MALocationCompletionBlock)(BOOL success, NSError * _Nullable error, MALocationModel * _Nullable locationModel);

typedef void (^ QMAEncryptedDataCallback)(QMAEncryptedData * _Nullable data, NSError * _Nullable error);

NS_ASSUME_NONNULL_END
